package com.zbkj.crmeb.system.controller;

import com.common.CommonPage;
import com.common.CommonResult;
import com.common.PageParamRequest;
import com.zbkj.crmeb.category.vo.CategoryTreeVo;
import com.zbkj.crmeb.system.model.SystemRole;
import com.zbkj.crmeb.system.request.SystemRoleRequest;
import com.zbkj.crmeb.system.request.SystemRoleSearchRequest;
import com.zbkj.crmeb.system.service.SystemRoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 身份管理表 前端控制器
 */
@Slf4j
@RestController
@RequestMapping("api/admin/system/role")
@Api(tags = "设置 -- 权限管理 -- 身份管理")
public class SystemRoleController {

    @Autowired
    private SystemRoleService systemRoleService;

    @ApiOperation(value = "TestMenu")
    @GetMapping(value = "/testMenu")
    public CommonResult testMenu(){
        String result = "[{\"path\": \"/store\",\"redirect\": \"/store/index\",\"name\": \"Store\",\"meta\": {\"title\": \"商品\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"index\",\"name\": \"StoreIndex\",\"meta\": {\"title\": \"商品管理\",\"icon\": \"\"}},{\"path\": \"sort\",\"name\": \"Sort\",\"meta\": {\"title\": \"商品分类\",\"icon\": \"\"}}]},{\"path\": \"/order\",\"redirect\": \"/order\",\"name\": \"Order\",\"alwaysShow\": true,\"meta\": {\"title\": \"订单\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"index\",\"name\": \"OrderIndex\",\"meta\": {\"title\": \"订单管理\"}}]},{\"path\": \"/user\",\"redirect\": \"/user\",\"name\": \"User\",\"meta\": {\"title\": \"会员\",\"icon\": \"clipboard\",\"roles\": [\"editor\"]},\"children\": [{\"path\": \"index\",\"name\": \"UserIndex\",\"meta\": {\"title\": \"会员管理\",\"icon\": \"\"}},{\"path\": \"notice\",\"name\": \"Notice\",\"meta\": {\"title\": \"站内通知\",\"icon\": \"\"}},{\"path\": \"grade\",\"name\": \"Grade\",\"meta\": {\"title\": \"会员等级\",\"icon\": \"\"}},{\"path\": \"group\",\"name\": \"Group\",\"meta\": {\"title\": \"会员分组\",\"icon\": \"\"}}]},{\"path\": \"/distribution\",\"redirect\": \"/distribution/index\",\"name\": \"Distribution\",\"meta\": {\"title\": \"分销\",\"icon\": \"clipboard\",\"roles\": [\"editor\"]},\"children\": [{\"path\": \"index\",\"name\": \"distributionIndex\",\"meta\": {\"title\": \"分销员管理\",\"icon\": \"\"}},{\"path\": \"distributionconfig\",\"name\": \"distributionConfig\",\"meta\": {\"title\": \"分销配置\",\"icon\": \"\"}}]},{\"path\": \"/marketing\",\"redirect\": \"/marketing\",\"name\": \"Marketing\",\"meta\": {\"title\": \"营销\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"coupon\",\"name\": \"Coupon\",\"meta\": {\"title\": \"优惠券\",\"icon\": \"\"},\"children\": [{\"path\": \"template\",\"name\": \"Template\",\"meta\": {\"title\": \"优惠券模板\",\"icon\": \"\"}},{\"path\": \"list\",\"name\": \"List\",\"meta\": {\"title\": \"优惠券列表\",\"icon\": \"\"}},{\"path\": \"record\",\"name\": \"Record\",\"meta\": {\"title\": \"会员领取记录\",\"icon\": \"\"}}]},{\"path\": \"bargain\",\"name\": \"Bargain\",\"meta\": {\"title\": \"砍价管理\",\"icon\": \"\"},\"alwaysShow\": true,\"children\": [{\"path\": \"bargainGoods\",\"name\": \"bargainGoods\",\"meta\": {\"title\": \"砍价商品\",\"icon\": \"\"}}]},{\"path\": \"groupBuy\",\"name\": \"groupBuy\",\"meta\": {\"title\": \"拼团管理\",\"icon\": \"\"},\"children\": [{\"path\": \"groupGoods\",\"name\": \"groupGoods\",\"meta\": {\"title\": \"拼团商品\",\"icon\": \"\"}},{\"path\": \"groupList\",\"name\": \"groupList\",\"meta\": {\"title\": \"拼团列表\",\"icon\": \"\"}}]},{\"path\": \"spike\",\"name\": \"Spike\",\"meta\": {\"title\": \"秒杀管理\",\"icon\": \"\"},\"children\": [{\"path\": \"spikeconfig\",\"name\": \"spikeConfig\",\"meta\": {\"title\": \"秒杀配置\",\"icon\": \"\"}},{\"path\": \"bargainList\",\"name\": \"bargainList\",\"meta\": {\"title\": \"秒杀商品\",\"icon\": \"\"}}]},{\"path\": \"integral\",\"name\": \"Integral\",\"meta\": {\"title\": \"积分\",\"icon\": \"\"},\"children\": [{\"path\": \"integralconfig\",\"name\": \"integralConfig\",\"meta\": {\"title\": \"积分配置\",\"icon\": \"\"}},{\"path\": \"integrallog\",\"name\": \"integralLog\",\"meta\": {\"title\": \"积分日志\",\"icon\": \"\"}}]}]},{\"path\": \"/financial\",\"redirect\": \"/financial\",\"name\": \"Financial\",\"meta\": {\"title\": \"财务\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"commission\",\"name\": \"Commission\",\"meta\": {\"title\": \"财务操作\",\"icon\": \"\"},\"alwaysShow\": true,\"children\": [{\"path\": \"template\",\"name\": \"Template\",\"meta\": {\"title\": \"申请提现\",\"icon\": \"\"}}]},{\"path\": \"record\",\"name\": \"Record\",\"meta\": {\"title\": \"财务记录\",\"icon\": \"\"},\"alwaysShow\": true,\"children\": [{\"path\": \"charge\",\"name\": \"Charge\",\"meta\": {\"title\": \"充值记录\",\"icon\": \"\"}},{\"path\": \"monitor\",\"name\": \"Monitor\",\"meta\": {\"title\": \"资金监控\",\"icon\": \"\"}}]},{\"path\": \"brokerage\",\"name\": \"Brokerage\",\"meta\": {\"title\": \"佣金记录\",\"icon\": \"\"}}]},{\"path\": \"/datas\",\"redirect\": \"/datas\",\"name\": \"Datas\",\"meta\": {\"title\": \"数据\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"transaction\",\"name\": \"Transaction\",\"meta\": {\"title\": \"交易数据\",\"icon\": \"\"},\"children\": [{\"path\": \"transactionorder\",\"name\": \"transactionOrder\",\"meta\": {\"title\": \"订单统计\",\"icon\": \"\"}},{\"path\": \"transactiongoods\",\"name\": \"transactionGoods\",\"meta\": {\"title\": \"商品统计\",\"icon\": \"\"}}]},{\"path\": \"bargain\",\"name\": \"Bargain\",\"meta\": {\"title\": \"砍价管理\",\"icon\": \"\"},\"alwaysShow\": true,\"children\": [{\"path\": \"bargainGoods\",\"name\": \"bargainGoods\",\"meta\": {\"title\": \"砍价商品\",\"icon\": \"\"}}]},{\"path\": \"groupBuy\",\"name\": \"groupBuy\",\"meta\": {\"title\": \"拼团管理\",\"icon\": \"\"},\"children\": [{\"path\": \"groupGoods\",\"name\": \"groupGoods\",\"meta\": {\"title\": \"拼团商品\",\"icon\": \"\"}},{\"path\": \"groupList\",\"name\": \"groupList\",\"meta\": {\"title\": \"拼团列表\",\"icon\": \"\"}}]},{\"path\": \"spike\",\"name\": \"Spike\",\"meta\": {\"title\": \"秒杀管理\",\"icon\": \"\"},\"children\": [{\"path\": \"spikeconfig\",\"name\": \"spikeConfig\",\"meta\": {\"title\": \"秒杀配置\",\"icon\": \"\"}},{\"path\": \"bargainList\",\"name\": \"bargainList\",\"meta\": {\"title\": \"秒杀商品\",\"icon\": \"\"}}]},{\"path\": \"integral\",\"name\": \"Integral\",\"meta\": {\"title\": \"积分\",\"icon\": \"\"},\"children\": [{\"path\": \"integralconfig\",\"name\": \"integralConfig\",\"meta\": {\"title\": \"积分配置\",\"icon\": \"\"}},{\"path\": \"integrallog\",\"name\": \"integralLog\",\"meta\": {\"title\": \"积分日志\",\"icon\": \"\"}}]}]},{\"path\": \"/operation\",\"redirect\": \"/operation\",\"name\": \"Operation\",\"meta\": {\"title\": \"设置CRMEB\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"/roleManager\",\"name\": \"RoleManager\",\"meta\": {\"title\": \"管理权限\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"identityManager\",\"name\": \"identityManager1\",\"meta\": {\"title\": \"身份管理\",\"icon\": \"\"}},{\"path\": \"adminList\",\"name\": \"adminList\",\"meta\": {\"title\": \"管理员列表\",\"icon\": \"\"}},{\"path\": \"promiseRules\",\"name\": \"promiseRules\",\"meta\": {\"title\": \"权限规则\",\"icon\": \"\"}}]}]}]";
//        String result = "[ { \"path\": \"/store\", \"redirect\": \"/store/index\", \"name\": \"Store\", \"meta\": {\"title\": \"商品\",\"icon\": \"clipboard\",\"roles\": [ \"admin\"] }, \"children\": [{ \"path\": \"index\", \"name\": \"StoreIndex\", \"meta\": { \"title\": \"商品管理\", \"icon\": \"\" }},{ \"path\": \"sort\", \"name\": \"Sort\", \"meta\": { \"title\": \"商品分类\", \"icon\": \"\" }} ] }, { \"path\": \"/order\", \"redirect\": \"/order\", \"name\": \"Order\", \"alwaysShow\": true, \"meta\": {\"title\": \"订单\",\"icon\": \"clipboard\",\"roles\": [ \"admin\"] }, \"children\": [{ \"path\": \"index\", \"name\": \"OrderIndex\", \"meta\": { \"title\": \"订单管理\" }} ] }, { \"path\": \"/user\", \"redirect\": \"/user\", \"name\": \"User\", \"meta\": {\"title\": \"会员\",\"icon\": \"clipboard\",\"roles\": [ \"editor\"] }, \"children\": [{ \"path\": \"index\", \"name\": \"UserIndex\", \"meta\": { \"title\": \"会员管理\", \"icon\": \"\" }},{ \"path\": \"notice\", \"name\": \"Notice\", \"meta\": { \"title\": \"站内通知\", \"icon\": \"\" }},{ \"path\": \"grade\", \"name\": \"Grade\", \"meta\": { \"title\": \"会员等级\", \"icon\": \"\" }},{ \"path\": \"group\", \"name\": \"Group\", \"meta\": { \"title\": \"会员分组\", \"icon\": \"\" }} ] }, { \"path\": \"/distribution\", \"redirect\": \"/distribution/index\", \"name\": \"Distribution\", \"meta\": {\"title\": \"分销\",\"icon\": \"clipboard\",\"roles\": [ \"editor\"] }, \"children\": [{ \"path\": \"index\", \"name\": \"distributionIndex\", \"meta\": { \"title\": \"分销员管理\", \"icon\": \"\" }},{ \"path\": \"distributionconfig\", \"name\": \"distributionConfig\", \"meta\": { \"title\": \"分销配置\", \"icon\": \"\" }} ] }, { \"path\": \"/marketing\", \"redirect\": \"/marketing\", \"name\": \"Marketing\", \"meta\": {\"title\": \"营销\",\"icon\": \"clipboard\",\"roles\": [ \"admin\"] }, \"children\": [{ \"path\": \"coupon\", \"name\": \"Coupon\", \"meta\": { \"title\": \"优惠券\", \"icon\": \"\" }, \"children\": [ {\"path\": \"template\",\"name\": \"Template\",\"meta\": { \"title\": \"优惠券模板\", \"icon\": \"\"} }, {\"path\": \"list\",\"name\": \"List\",\"meta\": { \"title\": \"优惠券列表\", \"icon\": \"\"} }, {\"path\": \"record\",\"name\": \"Record\",\"meta\": { \"title\": \"会员领取记录\", \"icon\": \"\"} } ]},{ \"path\": \"bargain\", \"name\": \"Bargain\", \"meta\": { \"title\": \"砍价管理\", \"icon\": \"\" }, \"alwaysShow\": true, \"children\": [ {\"path\": \"bargainGoods\",\"name\": \"bargainGoods\",\"meta\": { \"title\": \"砍价商品\", \"icon\": \"\"} } ]},{ \"path\": \"groupBuy\", \"name\": \"groupBuy\", \"meta\": { \"title\": \"拼团管理\", \"icon\": \"\" }, \"children\": [ {\"path\": \"groupGoods\",\"name\": \"groupGoods\",\"meta\": { \"title\": \"拼团商品\", \"icon\": \"\"} }, {\"path\": \"groupList\",\"name\": \"groupList\",\"meta\": { \"title\": \"拼团列表\", \"icon\": \"\"} } ]},{ \"path\": \"spike\", \"name\": \"Spike\", \"meta\": { \"title\": \"秒杀管理\", \"icon\": \"\" }, \"children\": [ {\"path\": \"spikeconfig\",\"name\": \"spikeConfig\",\"meta\": { \"title\": \"秒杀配置\", \"icon\": \"\"} }, {\"path\": \"bargainList\",\"name\": \"bargainList\",\"meta\": { \"title\": \"秒杀商品\", \"icon\": \"\"} } ]},{ \"path\": \"integral\", \"name\": \"Integral\", \"meta\": { \"title\": \"积分\", \"icon\": \"\" }, \"children\": [ {\"path\": \"integralconfig\",\"name\": \"integralConfig\",\"meta\": { \"title\": \"积分配置\", \"icon\": \"\"} }, {\"path\": \"integrallog\",\"name\": \"integralLog\",\"meta\": { \"title\": \"积分日志\", \"icon\": \"\"} } ]} ] }, { \"path\": \"/financial\", \"redirect\": \"/financial\", \"name\": \"Financial\", \"meta\": {\"title\": \"财务\",\"icon\": \"clipboard\",\"roles\": [ \"admin\"] }, \"children\": [{ \"path\": \"commission\", \"name\": \"Commission\", \"meta\": { \"title\": \"财务操作\", \"icon\": \"\" }, \"alwaysShow\": true, \"children\": [ {\"path\": \"template\",\"name\": \"Template\",\"meta\": { \"title\": \"申请提现\", \"icon\": \"\"} } ]},{ \"path\": \"record\", \"name\": \"Record\", \"meta\": { \"title\": \"财务记录\", \"icon\": \"\" }, \"alwaysShow\": true, \"children\": [ {\"path\": \"charge\",\"name\": \"Charge\",\"meta\": { \"title\": \"充值记录\", \"icon\": \"\"} }, {\"path\": \"monitor\",\"name\": \"Monitor\",\"meta\": { \"title\": \"资金监控\", \"icon\": \"\"} } ]},{ \"path\": \"brokerage\", \"name\": \"Brokerage\", \"meta\": { \"title\": \"佣金记录\", \"icon\": \"\" }} ] }, { \"path\": \"/datas\", \"redirect\": \"/datas\", \"name\": \"Datas\", \"meta\": {\"title\": \"数据\",\"icon\": \"clipboard\",\"roles\": [ \"admin\"] }, \"children\": [{ \"path\": \"transaction\", \"name\": \"Transaction\", \"meta\": { \"title\": \"交易数据\", \"icon\": \"\" }, \"children\": [ {\"path\": \"transactionorder\",\"name\": \"transactionOrder\",\"meta\": { \"title\": \"订单统计\", \"icon\": \"\"} }, {\"path\": \"transactiongoods\",\"name\": \"transactionGoods\",\"meta\": { \"title\": \"商品统计\", \"icon\": \"\"} } ]},{ \"path\": \"bargain\", \"name\": \"Bargain\", \"meta\": { \"title\": \"砍价管理\", \"icon\": \"\" }, \"alwaysShow\": true, \"children\": [ {\"path\": \"bargainGoods\",\"name\": \"bargainGoods\",\"meta\": { \"title\": \"砍价商品\", \"icon\": \"\"} } ]},{ \"path\": \"groupBuy\", \"name\": \"groupBuy\", \"meta\": { \"title\": \"拼团管理\", \"icon\": \"\" }, \"children\": [ {\"path\": \"groupGoods\",\"name\": \"groupGoods\",\"meta\": { \"title\": \"拼团商品\", \"icon\": \"\"} }, {\"path\": \"groupList\",\"name\": \"groupList\",\"meta\": { \"title\": \"拼团列表\", \"icon\": \"\"} } ]},{ \"path\": \"spike\", \"name\": \"Spike\", \"meta\": { \"title\": \"秒杀管理\", \"icon\": \"\" }, \"children\": [ {\"path\": \"spikeconfig\",\"name\": \"spikeConfig\",\"meta\": { \"title\": \"秒杀配置\", \"icon\": \"\"} }, {\"path\": \"bargainList\",\"name\": \"bargainList\",\"meta\": { \"title\": \"秒杀商品\", \"icon\": \"\"} } ]},{ \"path\": \"integral\", \"name\": \"Integral\", \"meta\": { \"title\": \"积分\", \"icon\": \"\" }, \"children\": [ {\"path\": \"integralconfig\",\"name\": \"integralConfig\",\"meta\": { \"title\": \"积分配置\", \"icon\": \"\"} }, {\"path\": \"integrallog\",\"name\": \"integralLog\",\"meta\": { \"title\": \"积分日志\", \"icon\": \"\"} } ]} ] }, { \"path\": \"/roleManager\", \"redirect\": \"/roleManager\", \"name\": \"RoleManager\", \"meta\": {\"title\": \"管理权限\",\"icon\": \"clipboard\",\"roles\": [ \"admin\"] }, \"children\": [{ \"path\": \"identityManager\", \"name\": \"identityManager\", \"meta\": { \"title\": \"身份管理\", \"icon\": \"\" }},{ \"path\": \"adminList\", \"name\": \"adminList\", \"meta\": { \"title\": \"管理员列表\", \"icon\": \"\" }},{ \"path\": \"promiseRules\", \"name\": \"promiseRules\", \"meta\": { \"title\": \"权限规则\", \"icon\": \"\" }} ] }]";
//        String result = "[{\"path\": \"/order\",\"component\": {\"name\": \"Layout\",\"components\": {\"AppMain\": {\"name\": \"AppMain\",\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-078753dd\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/AppMain.vue\"},\"Navbar\": {\"components\": {\"Breadcrumb\": {\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-b50ef614\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Breadcrumb/index.vue\"},\"Hamburger\": {\"name\": \"Hamburger\",\"props\": {\"isActive\": {\"default\": false}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-4e6f274c\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Hamburger/index.vue\"},\"ErrorLog\": {\"name\": \"ErrorLog\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-cf51e862\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ErrorLog/index.vue\"},\"Screenfull\": {\"name\": \"Screenfull\",\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-29234bee\",\"beforeCreate\": [null],\"__file\": \"src/components/Screenfull/index.vue\"},\"SizeSelect\": {\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/SizeSelect/index.vue\"},\"Search\": {\"name\": \"HeaderSearch\",\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-032bd1f0\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/HeaderSearch/index.vue\"}},\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-d16d6306\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Navbar.vue\"},\"RightPanel\": {\"name\": \"RightPanel\",\"props\": {\"clickNotClose\": {\"default\": false},\"buttonTop\": {\"default\": 250}},\"computed\": {},\"watch\": {},\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-1e488bfb\",\"beforeCreate\": [null],\"__file\": \"src/components/RightPanel/index.vue\"},\"Settings\": {\"components\": {\"ThemePicker\": {\"computed\": {},\"watch\": {\"defaultTheme\": {\"immediate\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ThemePicker/index.vue\"}},\"computed\": {\"fixedHeader\": {},\"tagsView\": {},\"sidebarLogo\": {}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-126b135a\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Settings/index.vue\"},\"Sidebar\": {\"components\": {\"SidebarItem\": {\"name\": \"SidebarItem\",\"components\": {\"Item\": {\"name\": \"MenuItem\",\"functional\": true,\"props\": {\"icon\": {\"default\": \"\"},\"title\": {\"default\": \"\"}},\"__file\": \"src/layout/components/Sidebar/Item.vue\"},\"AppLink\": {\"props\": {\"to\": {\"required\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Link.vue\"}},\"mixins\": [{\"computed\": {},\"methods\": {}}],\"props\": {\"item\": {\"required\": true},\"isNest\": {\"default\": false},\"basePath\": {\"default\": \"\"}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/SidebarItem.vue\"},\"Logo\": {\"name\": \"SidebarLogo\",\"props\": {\"collapse\": {\"required\": true}},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-6494804b\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Logo.vue\"}},\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/index.vue\"},\"TagsView\": {\"components\": {\"ScrollPane\": {\"name\": \"ScrollPane\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-be6b7bae\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/ScrollPane.vue\"}},\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-fac8ca64\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/index.vue\"}},\"mixins\": [{\"watch\": {},\"methods\": {}}],\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-13877386\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/index.vue\"},\"redirect\": \"/order\",\"name\": \"Order\",\"alwaysShow\": true,\"meta\": {\"title\": \"订单\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"index\",\"name\": \"OrderIndex\",\"meta\": {\"title\": \"订单管理\"}}]},{\"path\": \"/user\",\"component\": {\"name\": \"Layout\",\"components\": {\"AppMain\": {\"name\": \"AppMain\",\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-078753dd\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/AppMain.vue\"},\"Navbar\": {\"components\": {\"Breadcrumb\": {\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-b50ef614\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Breadcrumb/index.vue\"},\"Hamburger\": {\"name\": \"Hamburger\",\"props\": {\"isActive\": {\"default\": false}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-4e6f274c\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Hamburger/index.vue\"},\"ErrorLog\": {\"name\": \"ErrorLog\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-cf51e862\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ErrorLog/index.vue\"},\"Screenfull\": {\"name\": \"Screenfull\",\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-29234bee\",\"beforeCreate\": [null],\"__file\": \"src/components/Screenfull/index.vue\"},\"SizeSelect\": {\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/SizeSelect/index.vue\"},\"Search\": {\"name\": \"HeaderSearch\",\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-032bd1f0\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/HeaderSearch/index.vue\"}},\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-d16d6306\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Navbar.vue\"},\"RightPanel\": {\"name\": \"RightPanel\",\"props\": {\"clickNotClose\": {\"default\": false},\"buttonTop\": {\"default\": 250}},\"computed\": {},\"watch\": {},\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-1e488bfb\",\"beforeCreate\": [null],\"__file\": \"src/components/RightPanel/index.vue\"},\"Settings\": {\"components\": {\"ThemePicker\": {\"computed\": {},\"watch\": {\"defaultTheme\": {\"immediate\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ThemePicker/index.vue\"}},\"computed\": {\"fixedHeader\": {},\"tagsView\": {},\"sidebarLogo\": {}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-126b135a\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Settings/index.vue\"},\"Sidebar\": {\"components\": {\"SidebarItem\": {\"name\": \"SidebarItem\",\"components\": {\"Item\": {\"name\": \"MenuItem\",\"functional\": true,\"props\": {\"icon\": {\"default\": \"\"},\"title\": {\"default\": \"\"}},\"__file\": \"src/layout/components/Sidebar/Item.vue\"},\"AppLink\": {\"props\": {\"to\": {\"required\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Link.vue\"}},\"mixins\": [{\"computed\": {},\"methods\": {}}],\"props\": {\"item\": {\"required\": true},\"isNest\": {\"default\": false},\"basePath\": {\"default\": \"\"}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/SidebarItem.vue\"},\"Logo\": {\"name\": \"SidebarLogo\",\"props\": {\"collapse\": {\"required\": true}},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-6494804b\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Logo.vue\"}},\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/index.vue\"},\"TagsView\": {\"components\": {\"ScrollPane\": {\"name\": \"ScrollPane\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-be6b7bae\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/ScrollPane.vue\"}},\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-fac8ca64\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/index.vue\"}},\"mixins\": [{\"watch\": {},\"methods\": {}}],\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-13877386\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/index.vue\"},\"redirect\": \"/user\",\"name\": \"User\",\"meta\": {\"title\": \"会员\",\"icon\": \"clipboard\",\"roles\": [\"editor\"]},\"children\": [{\"path\": \"index\",\"name\": \"UserIndex\",\"meta\": {\"title\": \"会员管理\",\"icon\": \"\"}},{\"path\": \"notice\",\"name\": \"Notice\",\"meta\": {\"title\": \"站内通知\",\"icon\": \"\"}},{\"path\": \"grade\",\"name\": \"Grade\",\"meta\": {\"title\": \"会员等级\",\"icon\": \"\"}},{\"path\": \"group\",\"name\": \"Group\",\"meta\": {\"title\": \"会员分组\",\"icon\": \"\"}}]},{\"path\": \"/distribution\",\"component\": {\"name\": \"Layout\",\"components\": {\"AppMain\": {\"name\": \"AppMain\",\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-078753dd\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/AppMain.vue\"},\"Navbar\": {\"components\": {\"Breadcrumb\": {\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-b50ef614\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Breadcrumb/index.vue\"},\"Hamburger\": {\"name\": \"Hamburger\",\"props\": {\"isActive\": {\"default\": false}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-4e6f274c\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Hamburger/index.vue\"},\"ErrorLog\": {\"name\": \"ErrorLog\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-cf51e862\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ErrorLog/index.vue\"},\"Screenfull\": {\"name\": \"Screenfull\",\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-29234bee\",\"beforeCreate\": [null],\"__file\": \"src/components/Screenfull/index.vue\"},\"SizeSelect\": {\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/SizeSelect/index.vue\"},\"Search\": {\"name\": \"HeaderSearch\",\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-032bd1f0\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/HeaderSearch/index.vue\"}},\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-d16d6306\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Navbar.vue\"},\"RightPanel\": {\"name\": \"RightPanel\",\"props\": {\"clickNotClose\": {\"default\": false},\"buttonTop\": {\"default\": 250}},\"computed\": {},\"watch\": {},\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-1e488bfb\",\"beforeCreate\": [null],\"__file\": \"src/components/RightPanel/index.vue\"},\"Settings\": {\"components\": {\"ThemePicker\": {\"computed\": {},\"watch\": {\"defaultTheme\": {\"immediate\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ThemePicker/index.vue\"}},\"computed\": {\"fixedHeader\": {},\"tagsView\": {},\"sidebarLogo\": {}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-126b135a\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Settings/index.vue\"},\"Sidebar\": {\"components\": {\"SidebarItem\": {\"name\": \"SidebarItem\",\"components\": {\"Item\": {\"name\": \"MenuItem\",\"functional\": true,\"props\": {\"icon\": {\"default\": \"\"},\"title\": {\"default\": \"\"}},\"__file\": \"src/layout/components/Sidebar/Item.vue\"},\"AppLink\": {\"props\": {\"to\": {\"required\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Link.vue\"}},\"mixins\": [{\"computed\": {},\"methods\": {}}],\"props\": {\"item\": {\"required\": true},\"isNest\": {\"default\": false},\"basePath\": {\"default\": \"\"}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/SidebarItem.vue\"},\"Logo\": {\"name\": \"SidebarLogo\",\"props\": {\"collapse\": {\"required\": true}},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-6494804b\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Logo.vue\"}},\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/index.vue\"},\"TagsView\": {\"components\": {\"ScrollPane\": {\"name\": \"ScrollPane\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-be6b7bae\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/ScrollPane.vue\"}},\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-fac8ca64\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/index.vue\"}},\"mixins\": [{\"watch\": {},\"methods\": {}}],\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-13877386\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/index.vue\"},\"redirect\": \"/distribution/index\",\"name\": \"Distribution\",\"meta\": {\"title\": \"分销\",\"icon\": \"clipboard\",\"roles\": [\"editor\"]},\"children\": [{\"path\": \"index\",\"name\": \"distributionIndex\",\"meta\": {\"title\": \"分销员管理\",\"icon\": \"\"}},{\"path\": \"distributionconfig\",\"name\": \"distributionConfig\",\"meta\": {\"title\": \"分销配置\",\"icon\": \"\"}}]},{\"path\": \"/marketing\",\"component\": {\"name\": \"Layout\",\"components\": {\"AppMain\": {\"name\": \"AppMain\",\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-078753dd\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/AppMain.vue\"},\"Navbar\": {\"components\": {\"Breadcrumb\": {\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-b50ef614\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Breadcrumb/index.vue\"},\"Hamburger\": {\"name\": \"Hamburger\",\"props\": {\"isActive\": {\"default\": false}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-4e6f274c\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Hamburger/index.vue\"},\"ErrorLog\": {\"name\": \"ErrorLog\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-cf51e862\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ErrorLog/index.vue\"},\"Screenfull\": {\"name\": \"Screenfull\",\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-29234bee\",\"beforeCreate\": [null],\"__file\": \"src/components/Screenfull/index.vue\"},\"SizeSelect\": {\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/SizeSelect/index.vue\"},\"Search\": {\"name\": \"HeaderSearch\",\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-032bd1f0\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/HeaderSearch/index.vue\"}},\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-d16d6306\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Navbar.vue\"},\"RightPanel\": {\"name\": \"RightPanel\",\"props\": {\"clickNotClose\": {\"default\": false},\"buttonTop\": {\"default\": 250}},\"computed\": {},\"watch\": {},\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-1e488bfb\",\"beforeCreate\": [null],\"__file\": \"src/components/RightPanel/index.vue\"},\"Settings\": {\"components\": {\"ThemePicker\": {\"computed\": {},\"watch\": {\"defaultTheme\": {\"immediate\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ThemePicker/index.vue\"}},\"computed\": {\"fixedHeader\": {},\"tagsView\": {},\"sidebarLogo\": {}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-126b135a\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Settings/index.vue\"},\"Sidebar\": {\"components\": {\"SidebarItem\": {\"name\": \"SidebarItem\",\"components\": {\"Item\": {\"name\": \"MenuItem\",\"functional\": true,\"props\": {\"icon\": {\"default\": \"\"},\"title\": {\"default\": \"\"}},\"__file\": \"src/layout/components/Sidebar/Item.vue\"},\"AppLink\": {\"props\": {\"to\": {\"required\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Link.vue\"}},\"mixins\": [{\"computed\": {},\"methods\": {}}],\"props\": {\"item\": {\"required\": true},\"isNest\": {\"default\": false},\"basePath\": {\"default\": \"\"}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/SidebarItem.vue\"},\"Logo\": {\"name\": \"SidebarLogo\",\"props\": {\"collapse\": {\"required\": true}},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-6494804b\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Logo.vue\"}},\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/index.vue\"},\"TagsView\": {\"components\": {\"ScrollPane\": {\"name\": \"ScrollPane\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-be6b7bae\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/ScrollPane.vue\"}},\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-fac8ca64\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/index.vue\"}},\"mixins\": [{\"watch\": {},\"methods\": {}}],\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-13877386\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/index.vue\"},\"redirect\": \"/marketing\",\"name\": \"Marketing\",\"meta\": {\"title\": \"营销\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"coupon\",\"name\": \"Coupon\",\"meta\": {\"title\": \"优惠券\",\"icon\": \"\"},\"children\": [{\"path\": \"template\",\"name\": \"Template\",\"meta\": {\"title\": \"优惠券模板\",\"icon\": \"\"}},{\"path\": \"list\",\"name\": \"List\",\"meta\": {\"title\": \"优惠券列表\",\"icon\": \"\"}},{\"path\": \"record\",\"name\": \"Record\",\"meta\": {\"title\": \"会员领取记录\",\"icon\": \"\"}}]},{\"path\": \"bargain\",\"name\": \"Bargain\",\"meta\": {\"title\": \"砍价管理\",\"icon\": \"\"},\"alwaysShow\": true,\"children\": [{\"path\": \"bargainGoods\",\"name\": \"bargainGoods\",\"meta\": {\"title\": \"砍价商品\",\"icon\": \"\"}}]},{\"path\": \"groupBuy\",\"name\": \"groupBuy\",\"meta\": {\"title\": \"拼团管理\",\"icon\": \"\"},\"children\": [{\"path\": \"groupGoods\",\"name\": \"groupGoods\",\"meta\": {\"title\": \"拼团商品\",\"icon\": \"\"}},{\"path\": \"groupList\",\"name\": \"groupList\",\"meta\": {\"title\": \"拼团列表\",\"icon\": \"\"}}]},{\"path\": \"spike\",\"name\": \"Spike\",\"meta\": {\"title\": \"秒杀管理\",\"icon\": \"\"},\"children\": [{\"path\": \"spikeconfig\",\"name\": \"spikeConfig\",\"meta\": {\"title\": \"秒杀配置\",\"icon\": \"\"}},{\"path\": \"bargainList\",\"name\": \"bargainList\",\"meta\": {\"title\": \"秒杀商品\",\"icon\": \"\"}}]},{\"path\": \"integral\",\"name\": \"Integral\",\"meta\": {\"title\": \"积分\",\"icon\": \"\"},\"children\": [{\"path\": \"integralconfig\",\"name\": \"integralConfig\",\"meta\": {\"title\": \"积分配置\",\"icon\": \"\"}},{\"path\": \"integrallog\",\"name\": \"integralLog\",\"meta\": {\"title\": \"积分日志\",\"icon\": \"\"}}]}]},{\"path\": \"/financial\",\"component\": {\"name\": \"Layout\",\"components\": {\"AppMain\": {\"name\": \"AppMain\",\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-078753dd\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/AppMain.vue\"},\"Navbar\": {\"components\": {\"Breadcrumb\": {\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-b50ef614\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Breadcrumb/index.vue\"},\"Hamburger\": {\"name\": \"Hamburger\",\"props\": {\"isActive\": {\"default\": false}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-4e6f274c\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Hamburger/index.vue\"},\"ErrorLog\": {\"name\": \"ErrorLog\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-cf51e862\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ErrorLog/index.vue\"},\"Screenfull\": {\"name\": \"Screenfull\",\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-29234bee\",\"beforeCreate\": [null],\"__file\": \"src/components/Screenfull/index.vue\"},\"SizeSelect\": {\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/SizeSelect/index.vue\"},\"Search\": {\"name\": \"HeaderSearch\",\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-032bd1f0\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/HeaderSearch/index.vue\"}},\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-d16d6306\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Navbar.vue\"},\"RightPanel\": {\"name\": \"RightPanel\",\"props\": {\"clickNotClose\": {\"default\": false},\"buttonTop\": {\"default\": 250}},\"computed\": {},\"watch\": {},\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-1e488bfb\",\"beforeCreate\": [null],\"__file\": \"src/components/RightPanel/index.vue\"},\"Settings\": {\"components\": {\"ThemePicker\": {\"computed\": {},\"watch\": {\"defaultTheme\": {\"immediate\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ThemePicker/index.vue\"}},\"computed\": {\"fixedHeader\": {},\"tagsView\": {},\"sidebarLogo\": {}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-126b135a\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Settings/index.vue\"},\"Sidebar\": {\"components\": {\"SidebarItem\": {\"name\": \"SidebarItem\",\"components\": {\"Item\": {\"name\": \"MenuItem\",\"functional\": true,\"props\": {\"icon\": {\"default\": \"\"},\"title\": {\"default\": \"\"}},\"__file\": \"src/layout/components/Sidebar/Item.vue\"},\"AppLink\": {\"props\": {\"to\": {\"required\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Link.vue\"}},\"mixins\": [{\"computed\": {},\"methods\": {}}],\"props\": {\"item\": {\"required\": true},\"isNest\": {\"default\": false},\"basePath\": {\"default\": \"\"}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/SidebarItem.vue\"},\"Logo\": {\"name\": \"SidebarLogo\",\"props\": {\"collapse\": {\"required\": true}},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-6494804b\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Logo.vue\"}},\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/index.vue\"},\"TagsView\": {\"components\": {\"ScrollPane\": {\"name\": \"ScrollPane\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-be6b7bae\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/ScrollPane.vue\"}},\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-fac8ca64\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/index.vue\"}},\"mixins\": [{\"watch\": {},\"methods\": {}}],\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-13877386\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/index.vue\"},\"redirect\": \"/financial\",\"name\": \"Financial\",\"meta\": {\"title\": \"财务\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"commission\",\"name\": \"Commission\",\"meta\": {\"title\": \"财务操作\",\"icon\": \"\"},\"alwaysShow\": true,\"children\": [{\"path\": \"template\",\"name\": \"Template\",\"meta\": {\"title\": \"申请提现\",\"icon\": \"\"}}]},{\"path\": \"record\",\"name\": \"Record\",\"meta\": {\"title\": \"财务记录\",\"icon\": \"\"},\"alwaysShow\": true,\"children\": [{\"path\": \"charge\",\"name\": \"Charge\",\"meta\": {\"title\": \"充值记录\",\"icon\": \"\"}},{\"path\": \"monitor\",\"name\": \"Monitor\",\"meta\": {\"title\": \"资金监控\",\"icon\": \"\"}}]},{\"path\": \"brokerage\",\"name\": \"Brokerage\",\"meta\": {\"title\": \"佣金记录\",\"icon\": \"\"}}]},{\"path\": \"/datas\",\"component\": {\"name\": \"Layout\",\"components\": {\"AppMain\": {\"name\": \"AppMain\",\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-078753dd\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/AppMain.vue\"},\"Navbar\": {\"components\": {\"Breadcrumb\": {\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-b50ef614\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Breadcrumb/index.vue\"},\"Hamburger\": {\"name\": \"Hamburger\",\"props\": {\"isActive\": {\"default\": false}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-4e6f274c\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/Hamburger/index.vue\"},\"ErrorLog\": {\"name\": \"ErrorLog\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-cf51e862\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ErrorLog/index.vue\"},\"Screenfull\": {\"name\": \"Screenfull\",\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-29234bee\",\"beforeCreate\": [null],\"__file\": \"src/components/Screenfull/index.vue\"},\"SizeSelect\": {\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/SizeSelect/index.vue\"},\"Search\": {\"name\": \"HeaderSearch\",\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-032bd1f0\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/HeaderSearch/index.vue\"}},\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-d16d6306\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Navbar.vue\"},\"RightPanel\": {\"name\": \"RightPanel\",\"props\": {\"clickNotClose\": {\"default\": false},\"buttonTop\": {\"default\": 250}},\"computed\": {},\"watch\": {},\"beforeDestroy\": [null,null],\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-1e488bfb\",\"beforeCreate\": [null],\"__file\": \"src/components/RightPanel/index.vue\"},\"Settings\": {\"components\": {\"ThemePicker\": {\"computed\": {},\"watch\": {\"defaultTheme\": {\"immediate\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/components/ThemePicker/index.vue\"}},\"computed\": {\"fixedHeader\": {},\"tagsView\": {},\"sidebarLogo\": {}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-126b135a\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Settings/index.vue\"},\"Sidebar\": {\"components\": {\"SidebarItem\": {\"name\": \"SidebarItem\",\"components\": {\"Item\": {\"name\": \"MenuItem\",\"functional\": true,\"props\": {\"icon\": {\"default\": \"\"},\"title\": {\"default\": \"\"}},\"__file\": \"src/layout/components/Sidebar/Item.vue\"},\"AppLink\": {\"props\": {\"to\": {\"required\": true}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Link.vue\"}},\"mixins\": [{\"computed\": {},\"methods\": {}}],\"props\": {\"item\": {\"required\": true},\"isNest\": {\"default\": false},\"basePath\": {\"default\": \"\"}},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/SidebarItem.vue\"},\"Logo\": {\"name\": \"SidebarLogo\",\"props\": {\"collapse\": {\"required\": true}},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-6494804b\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/Logo.vue\"}},\"computed\": {},\"staticRenderFns\": [],\"_compiled\": true,\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/Sidebar/index.vue\"},\"TagsView\": {\"components\": {\"ScrollPane\": {\"name\": \"ScrollPane\",\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-be6b7bae\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/ScrollPane.vue\"}},\"computed\": {},\"watch\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-fac8ca64\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/components/TagsView/index.vue\"}},\"mixins\": [{\"watch\": {},\"methods\": {}}],\"computed\": {},\"methods\": {},\"staticRenderFns\": [],\"_compiled\": true,\"_scopeId\": \"data-v-13877386\",\"beforeCreate\": [null],\"beforeDestroy\": [null],\"__file\": \"src/layout/index.vue\"},\"redirect\": \"/datas\",\"name\": \"Datas\",\"meta\": {\"title\": \"数据\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"transaction\",\"name\": \"Transaction\",\"meta\": {\"title\": \"交易数据\",\"icon\": \"\"},\"children\": [{\"path\": \"transactionorder\",\"name\": \"transactionOrder\",\"meta\": {\"title\": \"订单统计\",\"icon\": \"\"}},{\"path\": \"transactiongoods\",\"name\": \"transactionGoods\",\"meta\": {\"title\": \"商品统计\",\"icon\": \"\"}}]},{\"path\": \"bargain\",\"name\": \"Bargain\",\"meta\": {\"title\": \"砍价管理\",\"icon\": \"\"},\"alwaysShow\": true,\"children\": [{\"path\": \"bargainGoods\",\"name\": \"bargainGoods\",\"meta\": {\"title\": \"砍价商品\",\"icon\": \"\"}}]},{\"path\": \"groupBuy\",\"name\": \"groupBuy\",\"meta\": {\"title\": \"拼团管理\",\"icon\": \"\"},\"children\": [{\"path\": \"groupGoods\",\"name\": \"groupGoods\",\"meta\": {\"title\": \"拼团商品\",\"icon\": \"\"}},{\"path\": \"groupList\",\"name\": \"groupList\",\"meta\": {\"title\": \"拼团列表\",\"icon\": \"\"}}]},{\"path\": \"spike\",\"name\": \"Spike\",\"meta\": {\"title\": \"秒杀管理\",\"icon\": \"\"},\"children\": [{\"path\": \"spikeconfig\",\"name\": \"spikeConfig\",\"meta\": {\"title\": \"秒杀配置\",\"icon\": \"\"}},{\"path\": \"bargainList\",\"name\": \"bargainList\",\"meta\": {\"title\": \"秒杀商品\",\"icon\": \"\"}}]},{\"path\": \"integral\",\"name\": \"Integral\",\"meta\": {\"title\": \"积分\",\"icon\": \"\"},\"children\": [{\"path\": \"integralconfig\",\"name\": \"integralConfig\",\"meta\": {\"title\": \"积分配置\",\"icon\": \"\"}},{\"path\": \"integrallog\",\"name\": \"integralLog\",\"meta\": {\"title\": \"积分日志\",\"icon\": \"\"}}]}]},{\"path\": \"*\",\"redirect\": \"/404\",\"hidden\": true}]";
//        String result = "[{\"path\": \"/order\",\"redirect\": \"/order\",\"name\": \"Order\",\"alwaysShow\": true,\"meta\": {\"title\": \"订单\",\"icon\": \"clipboard\",\"roles\": [\"admin\"]},\"children\": [{\"path\": \"index\",\"name\": \"OrderIndex\",\"meta\": {\"title\": \"订单管理\"}}]}]";
        return CommonResult.success(result,"获取菜单成功");
    }
    /**
     * 分页显示身份管理表
     * @param request 搜索条件
     * @param pageParamRequest 分页参数
     * @author Mr.Zhang
     * @since 2020-04-18
     */
    @ApiOperation(value = "分页列表")
    @RequestMapping(value = "/list", method = RequestMethod.GET)
    public CommonResult<CommonPage<SystemRole>>  getList(@Validated SystemRoleSearchRequest request, @Validated PageParamRequest pageParamRequest){
        CommonPage<SystemRole> systemRoleCommonPage = CommonPage.restPage(systemRoleService.getList(request, pageParamRequest));
        return CommonResult.success(systemRoleCommonPage);
    }

    /**
     * 新增身份管理表
     * @param systemRoleRequest 新增参数
     * @author Mr.Zhang
     * @since 2020-04-18
     */
    @ApiOperation(value = "新增")
    @RequestMapping(value = "/save", method = RequestMethod.POST)
    public CommonResult<String> save(@Validated SystemRoleRequest systemRoleRequest){
        SystemRole systemRole = new SystemRole();
        BeanUtils.copyProperties(systemRoleRequest, systemRole);

        if(systemRoleService.save(systemRole)){
            return CommonResult.success();
        }else{
            return CommonResult.failed();
        }
    }

    /**
     * 删除身份管理表
     * @param id Integer
     * @author Mr.Zhang
     * @since 2020-04-18
     */
    @ApiOperation(value = "删除")
    @RequestMapping(value = "/delete", method = RequestMethod.GET)
    public CommonResult<String> delete(@RequestParam(value = "id") Integer id){
        if(systemRoleService.removeById(id)){
            return CommonResult.success();
        }else{
            return CommonResult.failed();
        }
    }

    /**
     * 修改身份管理表
     * @param id integer id
     * @param systemRoleRequest 修改参数
     * @author Mr.Zhang
     * @since 2020-04-18
     */
    @ApiOperation(value = "修改")
    @RequestMapping(value = "/update", method = RequestMethod.POST)
    public CommonResult<String> update(@RequestParam Integer id, @Validated SystemRoleRequest systemRoleRequest){
        SystemRole systemRole = new SystemRole();
        BeanUtils.copyProperties(systemRoleRequest, systemRole);
        systemRole.setId(id);

        if(systemRoleService.updateById(systemRole)){
            return CommonResult.success();
        }else{
            return CommonResult.failed();
        }
    }

    /**
     * 查询身份管理表信息
     * @param id Integer
     * @author Mr.Zhang
     * @since 2020-04-18
     */
    @ApiOperation(value = "详情")
    @RequestMapping(value = "/info", method = RequestMethod.GET)
    public CommonResult<SystemRole> info(@RequestParam(value = "id") Integer id){
        SystemRole systemRole = systemRoleService.getById(id);
        return CommonResult.success(systemRole);
   }

    /**
     * 管理员菜单权限
     * @author Mr.Zhang
     * @since 2020-04-13
     */
    @ApiOperation(value = "菜单")
    @RequestMapping(value = "/menu", method = RequestMethod.GET)
    public CommonResult<List<CategoryTreeVo>> menu(){
        List<CategoryTreeVo> categoryTreeVoList = systemRoleService.menu();
        return CommonResult.success(categoryTreeVoList);
    }
}



